package com.example.mystore.service;


import com.example.mystore.model.Order;
import com.example.mystore.model.OrderRequest;
import com.example.mystore.model.OrderDao;
import com.example.mystore.model.dto.OrderDto;

import java.util.List;


public interface OrderService {
    void createOrder(OrderRequest orderRequest);

    int deleteOrderById(int id);

    int updateOrder(Order order);



    List<Order> getOrderById(Integer userId);

    Order getOrderByNo(int orderNo);

    List<Order> getAllOrders();

    OrderDao getOrderDetails(Integer orderNo);

    OrderDto getOrderDetail(Integer id);


}

